<template>
  <div id="FarmersRectification">
    <div class="top">
      <img style="width:80%;margin: 0 auto" src="https://nfzjszlb.jst.zj.gov.cn/serverfile/zheliban/icon/YPC/12.png" />
      <p>
        <span style="width:31%;display: inline-block;text-align: left;padding-left:2%;">危改申请</span>
        <span style="width:31%;display: inline-block;text-align: center;">农户危改整治</span>
        <span style="width:31%;display: inline-block;text-align: center;">困难家庭补助申请</span>
      </p>
    </div>
    <div class="info">
      {{html}}
    </div>
    <div class="footer">
      <p>请确保资料真实有效，我们会第一时间受理您的建房申请</p>
      <div class="bottomBtn" @click="getinsertDataView">下一步</div>
    </div>
  </div>
</template>
<script>
export default {
  name: "FarmersRectification",
  data() {
    return {
      row: {},
      html: "镇街已同意对本危房采取腾空防控，请及时搬离"
    }
  },
  methods: {
    getinsertDataView() {
      this.$router.push({
        path: "/TreeSelect1",
        query: { data: this.row }
      });
    },
  },
  mounted() {
    this.row = JSON.parse(this.$route.query.data)
    if (this.row.JWFS == 259) {
      this.html = "镇街已同意对本危房采取腾空防控，请及时搬离"
    } else if (this.row.JWFS == 264) {
      this.html = "镇街已同意对本危房采取拆除，请及时搬离"
    } else if (this.row.JWFS == 266) {
      this.html = "镇街已同意对本危房采取成绩排名重建，请及时搬离"
    }
    if (ZWJSBridge) {
      ZWJSBridge.setTitle({
        "title": "农户危改通知"
      }).then(res => {
      }).catch(err => {
      })
    }
  }
}
</script>
<style lang="scss" scoped>
#FarmersRectification {
  width: 100%;
  height: 100vh;
  position: relative;
  padding-top: 1px;
  .top {
    height: 90px;
    background: #ffffff;
    padding-top: 25px;
    text-align: center;
    .origin {
      width: 22px;
      height: 22px;
      background: #007aff;
      border-radius: 50%;
      display: inline-block;
    }
    .line {
      width: 20vw;
      /*height: 1px;*/
      border: 1px dashed #007aff;
      display: inline-block;
    }
  }
  .info {
    width: 90%;
    margin: 0 auto;
    background: #e4e4e4;
    border-radius: 20px;
    padding: 10px 20px;
    font-weight: bold;
    color: #232323;
    line-height: 30px;
    text-align: center;
    margin-top: 20px;
  }
  .footer {
    text-align: center;
    position: absolute;
    bottom: 10px;
    width: 100%;
    padding: 0 10px;
    p {
      color: #000;
      font-size: 14px;
      line-height: 40px;
    }
    .bottomBtn {
      height: 50px;
      background: #007aff;
      line-height: 50px;
      text-align: center;
      color: #ffffff;
      font-weight: bold;
    }
  }
}
</style>